<extend name='./Public/Base/admin_base.html' />
<block name='script'>
	<link rel="stylesheet" href="__PUBLIC__/Admin/service_list.css"> 
</block>
<block name='content'>

<div class='container-layout'>
	<div class='line margin'>
		<div class='x9'>首页 / 项目管理 / 服务管理</div>
	</div>

	<!--添加服务-->
	<div class='line hiddens ServiceCon'>
		
		<form action='service_type_sub' method='post' >
			<input type='hidden' name='token' value='<?php echo Token_Set('service_type_sub') ?>' />
			<div class='x2 '>
				<lable class='label'>服务名：
					<input type='text' class='input' name='name' />
				</lable>
			</div>
			<div class='x2 '>
				<lable class='label'>序号：
					<input type='text' class='input' name='order' />
				</lable>
			</div>
			<div class='x2 '>
				<lable class='label'>表名：
					<input type='text' class='input' name='table_name' />
				</lable>
			</div>
			<div class='x2 Padding-top20'>
				<input  type='submit' class='button bg-sub'  value='添加' ></button>
			</div>
		</form>
	</div>




	

	<!--显示数据-->
	<div class='line'>
		<div class='x12'>
			<table class='table Service_list'>
				<tr>
					<th>服务名</th>
					<th>排序等级</th>
					<th>操作</th>
				</tr>
				<volist name='res.list' id='vo'>
					<tr>
						<td>{$vo.type_name}</td>
						<td>{$vo.type_order}</td>
						<td>
							<a urldata='__URL__/service_del?sid={$vo.type_id}&token=<?php echo Token_Set('service_del'); ?>&pnow={:I('get.pnow')}' class='button button-little bg-sub ServiceDel' >删除</a>
						</td>
					</tr>
				</volist>
			</table>			
		</div>
	</div>

	<!--显示分页-->
	<div class='line margin-large'>
		<if condition="$res_list_count gt 0">
			<div class='x12  text-center'>
				{$res['fpage']}
			</div>
		</if>
	</div>

</div>





</block>
<block name='bottom'>
	<script>
	$(function(){
		$(".ServiceDel").click(function(){
			if(!confirm('确认删除？')){
				exit;
			}
			$(this).attr('href',$(this).attr('urldata'));
		});
	});
	</script>
</block>